package com.xliu.csopenproject.pim_server.config;

import com.xliu.csopenproject.pim_server.image.meta.ImageMetaReader;
import com.xliu.csopenproject.pim_server.image.meta.impl.ImageMetaReaderImpl;
import com.xliu.csopenproject.pim_server.store.ImageStore;
import com.xliu.csopenproject.pim_server.store.LocalFileStore;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

// 构造对象的实例（除了 controller/service/db 包中类)，供 Spring 使用
@Configuration
public class BeanConfig {

    @Bean
    public ImageMetaReader imageMetaExtractor() {
        return new ImageMetaReaderImpl();
    }


    @Bean
    public ImageStore imageStore() {
        return new LocalFileStore();
    }
}
